package com.example.business.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import java.time.LocalDateTime;

@Data
@EqualsAndHashCode(callSuper = true)
@TableName("news")
public class News extends BaseEntity {
    @TableId(type = IdType.AUTO)
    private Long id;

    // 新闻标题
    private String title;

    // 发布时间
    private LocalDateTime publishTime;
}